<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('yp','center_header'); ?>
<style type="text/css">
#right{margin-top:0px;}
</style>
<div id="main">
<?php include template("yp","center_left"); ?>
<div id="right">
<?php if($job==0) { ?>
<div class="tag_1"><a href="<?php echo BUSINESSDIR;?>?file=collect&action=manage" class="s_3">我的收藏</a><a href="<?php echo BUSINESSDIR;?>?file=collect&action=manage&job=1" >被收藏的</a></div>
<table cellpadding="0" cellspacing="1" class="table_list">
  <tr>
<th>标题</th>
<th width="120">收藏时间</th>
<th width="110">操作</th>
  </tr>
<?php if(is_array($infos)) foreach($infos AS $info) { ?>
<tr>
<td class="align_left">
<a href="<?php echo $info['url'];?>" target="_blank"><?php echo $info['title'];?></a>
</td>
<td><?php echo date('Y-m-d H:i',$info[addtime]);?></td>
<td><a href="javascript:confirmurl('<?php echo BUSINESSDIR;?>?file=collect&action=delete&cid=<?php echo $info['cid'];?>','确认要删除此信息吗？')">删除</a></td>
</tr>
<?php } ?>
</table>
<?php } else { ?>
<div class="tag_1"><a href="<?php echo BUSINESSDIR;?>?file=collect&action=manage">我的收藏</a><a href="<?php echo BUSINESSDIR;?>?file=collect&action=manage&job=1" class="s_3">被收藏的</a></div>
<table cellpadding="0" cellspacing="1" class="table_list">
  <tr>
<th>标题</th>
<th width="120">收藏人</th>
<th width="120">收藏时间</th>
<th width="40">发消息</th>
  </tr>
<?php if(is_array($infos)) foreach($infos AS $info) { ?>
<tr>
<td class="align_left">
<a href="<?php echo $info['url'];?>" target="_blank"><?php echo $info['title'];?></a>
</td>
<td><?php echo username($info[userid]);?></td>
<td><?php echo date('Y-m-d H:i',$info[addtime]);?></td>
<td class="align_c"><a href="<?php echo $MODULE['message']['url'];?>send.php?userid=<?php echo $info['vid'];?>" target="_blank"><img src="yp/images/message.gif"></a></td>
</tr>
<?php } ?>
</table>
<?php } ?>
<div id="pages"><?php echo $pages;?></div>
  </div>
</div>
<div class="clear"></div>
<?php include template('phpcms','footer'); ?>